package method.homework1203;
//打印二维数组里面所有int数里面的最大值
//int[][] arr = {{1,2,3},{4,5,6,7},{1,2,3,4,5,6,7},{10,11,12},{20,21}};
public class work07 {
    public static void main(String[] args) {
        int[][] arr = {{1,2,3},{4,5,6,7},{1,2,3,4,5,6,7},{10,11,12},{20,21}};
        int max=arr[0][0];
        for (int j = 0; j < arr.length; j++) {
            for (int i = 0; i < arr[j].length; i++) {
                if (arr[j][i]>max){
                    max=arr[j][i];
                }
            }
        }
        System.out.println("二维数组里面最大值是："+max);
    }
}
